import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';



// 销售订单配车查询
export const getSalesOrder = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/queryCarDistribution`, { params });

// 查询配车确认详情
export const getAllocationDetails = (id, params) => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/confirmCarInfo/${id}`, params);

// 查询车辆库存列表
export const inquiryVehicle = params => axios.get(`${SERVER.CYXDMS_VEHICLE}/vsStock`, { params });

// 车辆配置五级选择
export const vehicleConfiguration = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTree`, { params: { type: id, level: 5, ...params } });

// 车辆配置六级选择
export const vehicleConfigurationNew = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, { params: { type: id, level: 6, ...params } });

// 销售订单配车
export const vehiclePreservation = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/confirmCar`, params);

// 销售订单配车提交
export const vehiclesSum = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/salesOrders/confirmCarSubmit`, params);

// vsStore/queryVsStoreAll 查询仓库列表--不分页
// export const queryVsStoreAll = params => axios.get(`${SERVER.CYXDMS_VEHICLE}/vsStore/queryVsStoreAll`, { params })
export const queryVsStoreAll = {};
